wayland: Add get_monitor_at_window to Wayland backend
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 17 May 2016 13:04:23 +0000 (15:04 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Wed, 18 May 2016 17:07:27 +0000 (19:07 +0200)
commitb03784eb979bb8c7fee317f1ddeeed67c35eb63e
tree3ef4c6655232e74c89cc336fe521686ce2f4094a
parentca77de055baa403f7ebf397772dfb8f13656607d
wayland: Add get_monitor_at_window to Wayland backend

Given that Wayland has no global coordinate, the only way for gdk to
retrieve the monitor a window last entered is to retrieve it from the
GdkWaylandWindow itself.

Implement the backend specific get_monitor_at_window() to return the
monitor that was last entered by the window.

https://bugzilla.gnome.org/show_bug.cgi?id=766566
gdk/wayland/gdkdisplay-wayland.c